home *** CD-ROM | disk | FTP | other *** search
- ############################################################
- # !STDFinder V1.01 #
- # By Julyan Bristow August 1993 - June 1993 #
- ############################################################
-
- ReadMe file for !STDFinder
-
- 1.0 Introduction
- ################
-
- The purpose of this program is to allow users to match towns
- with their STD dialling codes, and vice versa. Wildcard
- matching is allowed, and export of the entire database, or a
- subset is allowed. Editing of the data through addition or
- deletion of database entries is allowed.
-
- 2.0 The Program
- ###############
-
- The program installs on the icon bar in the normal way.
- Three options are currently available from the icon bar
- menu:
-
- Info Self explanatory
- Search " " "
- Quit " " "
-
- 2.1 'Info'
- ##########
- Clicking or following the arrow gives the usual information
- on version number and author of the program.
-
- 2.2 'Search'
- ############
- Clicking on the icon itself, or selecting this option from
- the menu allows searching of the STD Code 'database'. This
- pops up a dialogue box with 3 menu items, 1 entry field, 2
- output fields, 2 arrow icons and a selectable exact option.
-
- The town or code to be found should be entered in the box
- under the menu icons as indicated.
-
- To commence the search, either click with the left mouse
- button over the 'Search' icon, or press return. If none
- are found, a beep will sound. If the search criteria is met,
- then those towns and codes meeting the search criteria will
- appear in a window below, which can be scrolled to view all
- entries, should there be more than the number appearing in the
- window.
-
- Selection of the 'exact' option means that the database will be
- searched only for an exact match of the user's search string.
- Eg if the search string is 'Bedworth', then only matches exactly
- equal to this will be identified. This the same for the dialling
- codes
-
- If the exact option is not selected, then a match will be found
- if the users search string is contained within any of the entries
- of the database. This is case independent. Eg if the search
- string is 'worth', then 'Bedworth', 'Bagworthy' and 'Worthing'
- will all be valid.
-
- Use of Wildcards (v0.09 onwards):
- A simple wildcards search is now permitted. The wildcard symbol
- is '*'. Wildcards are currently used (v0.09) to determine whether
- the search is to be from the start or the end each of the database
- strings.
-
- To clarify this consider, the search string 'worth' once again.
- If 'worth' is entered then the results will be similar to those
- described above. However, if 'worth*' is entered then only towns
- beginning with the string worth will be found Eg Worthing. If
- '*worth' is entered then only towns with the last 5 characters of
- worth will be found Eg Bedworth. Finally if *worth* is entered
- then only towns containing the 5 characters 'worth' in their name,
- but not at the start or end will be found Eg Bagworthy.
-
- If wildcards are not positioned in the first or last position
- of the search string, or there are more than 2 wildcards
- entered, then an error will be reported (most of the time!) and
- at the very least no string will be found.
-
- Wildcards are not permitted with the exact option set to on.
-
- Clicking 'menu' over this window gives two further options - Edit
- and Save, each with a further submenu.
-
- The Edit option submenu allows addition of new data and deletion of
- existing data. Selection of either of these will pop up a second
- dialogue box containing 3 fields for entry of the town, its code
- and a menu icon to carry out either the deletion or addition.
- Currently, this dialogue box will not move, neither will the cursor
- keys move the text caret, so you will have to use the mouse. I am
- currently looking into this.
-
- Addition of a new entry will always enter the text string into the
- format 'Xxxxx Xxxxxx Xx Xxxx' depending on the number of words to be
- entered. Eg wOrhTinG is entered as Worthing. The new entry is
- added in sorted order, so if the data is to be used elsewhere there
- is no need to sort it before use.
-
- On deletion, only an exact match of both the town and the code will
- allow deletion of the entry.
-
- The Save option submenu gives two choices. The first is to save the
- entire database to a text file. The second is to save all the entries
- found after a search to a text file. This option is disabled if there
- are no entries found.
-
- 2.4 'Quit'
- ##########
- Select this to quit the program. A check is made to ensure that any
- additions or deletions to the database will be saved at the users
- discretion.
-
- 2.5 'Load User Directories'
- ###########################
- Option added at version 1.00. The user may add their own data to the
- program. This is done by dragging a text file to the icon on the icon
- bar. This will pop a dialogue box to give the user the oppotunity to
- append the data, or overwrite the current data, or to cancel if required.
- The data is sorted as it is added to the database, and so can take some
- time if large datafiles are added.
-
- The file format is as follows: A text file, with the town name followed
- a comma, followed by the code. The last line of the file should be data,
- and there should be no blank line.
-
- 3.0 Program Limitations
- #######################
- Wildcard option a bit simple.
- Does not release memory at the start of each new search.
-
- 4.0 Proposed Program Enhancements
- ##################################
- Proposed enhancements are as follows:
- (i) Compression of the database for smaller overall program disk
- space.
- (ii) Use flex.h or heap.h to use memory releasing routines.
-
- 5.0 Version History
- ###################
- Version 0.01: August 1992
- Initial version of the program working in a desktop
- enviroment. 'Info', 'Search' and 'Quit' routines
- implemented with a limited database.
-
- Version 0.04: September 1992
- Tidying up of code of version 0.01. All STD codes entered
- into database.
-
- Version 0.05: 25 September 1992
- Further coding improvements. Facility added to make search
- criteria case independant. Eg LonDoN will now be found.
-
- Version 0.06: 2 October 1992
- Further coding improvements. Bubble sort routine added to
- sort database either by code or by town. Export routine
- included to allow easy export of the sorted data to !EDIT,
- printers etc.
-
- Version 0.07: 2 October 1992
- Replaced bubble sort with the quick sort algorithm.
-
- Version 0.08: 23 December 1992
- Added faded arrow fields. Added exact search option, and changed
- existing search option to allow the search string to be found if it
- is contained in any of the database entries. Removed radio icons
- for selection of search by town or code - difference automatically
- detected.
-
- Version 0.09: 31 December 1992
- Added a relatively simple wild card search option. Attempted to
- make the exact search detection a bit more robust.
-
- Version 0.10: 9 January 1993
- Improved robustness of exact icon operation and allowed the
- RETURN key to start the search after entry of the code or town.
- Thanks to Craig Murphy and Shanawaz Basith for the tips for the above.
-
- Version 0.16: 23 February 1993
- Temporary removal of sort option. Change program to use doubly linked
- dynamic lists (no restriction other than memory on database or search
- sizes). Addition of menu structure to the search window. Addition of
- add and delete database entries. Addition of save complete database and
- save searched subset.
-
- Version 1.00: 8 March 1993
- Added features: drag user directory to database - append or overwrite.
- Check before quitting if need to save any new data.
- Fully released into public domain.
-
- Version 1.01: 22 March 1993
- Error in saving modified database data corrected. When saving data
- from the search menu, width of town now determined by maximum length
- of data read in, so town name is never truncated.
-
- Version 2.00: 16 June 1993
- All towns meeting the search criteria now displayed in a window.
-
- 6.0 Notes
- #########
-
- The dialling codes are due to change sometime in 1993 (I think!).
- A second database file is included called Newcodes with the new codes
- in. Please do not take this as gospel though please!
-
- This program is Public Domain. Please feel free to
- distribute it as you wish. Please make sure that all the
- files listed below are included:
-
- !Boot
- !Run
- !Runimage The executable code
- !Sprites The application sprites
- Sprites The resource sprites
- Templates The application template file
- Newcodes The database of all STD codes
- c Directory containing the source code.
- Directorys Directory containing various different
- STD Code directories.
-
- Please do not take credit where it is not due! It took me
- hours to type in all the codes (all 5000+ of them) so at
- least give me some credit. I was going to encode the
- data, but it is not really worth all that much bother, so
- please do not abuse my trust.
-
- The STD codes in the program are taken from the September
- 1991 Birmingham Telephone Directory. I cannot (and will
- not) be held responsible for any errors that may have
- slipped in. Also included is a subdirectory containing
- the local codes for the Birmingham exchange. Please send
- me similar data for other cities eg Manchester, London etc
- so that the database can improve in usefulness!
-
- However, I will be very grateful if any mistakes are
- highlighted and sent to me at the address below, so that
- any future versions will contain fewer errors. If any
- one else out there is keen on C desktop (or otherwise)
- programming I will be pleased to hear from you for swapping
- of hints and tips etc. Also if anyone can think of better
- sprite then please send it in - I am useless at drawing.
- Credit will be given as apropriate.
-
- Please write to
-
- Julyan Bristow
- 40 Dunard Road
- SHIRLEY
- SOLIHULL
- WEST MIDLANDS
- B90 2HR